#!/bin/bash
set -e
ulimit -n 1000000

DEPLOY_DIR={{ deploy_dir }}
cd "${DEPLOY_DIR}" || exit 1


exec > >(tee -i -a "{{ process_exporter_log_dir }}/{{ process_exporter_log_filename }}")
exec 2>&1

exec bin/process_exporter \
    --config.path="{{ deploy_dir }}/conf/{{ process_exporter_conf_filename }}" \
    --web.listen-address=":{{ process_exporter_port }}" 

